package com.yygo.service.impl;

import com.yygo.dao.VehicleModelDao;
import com.yygo.model.VehicleModel;
import com.yygo.service.VehicleModelManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by tiansha on 2015/6/23.
 */
@Service("vehicleModelManager")
public class VehicleModelManagerImpl extends GenericManagerImpl<VehicleModel, Long> implements VehicleModelManager {

    private VehicleModelDao vehicleModelDao;

    @Autowired
    public VehicleModelManagerImpl(VehicleModelDao vehicleModelDao) {
        super(vehicleModelDao);
        this.vehicleModelDao = vehicleModelDao;
    }

    @Override
    public Long getGuidePrice(Long modelId) {
        return vehicleModelDao.getGuidePrice(modelId);
    }
}
